<!--商品信息维护-->
<template>
  <div class="content-bottom">
    <cus-card :showTitle="false"  >
      <div class="btnBox">
        <Button type="primary" v-permission="20" @click="onAdd()" >添加</Button>
      </div>
      <commodityTypeTable ref="commodityTypeTable" :form="form"></commodityTypeTable>
    </cus-card>
  </div>
</template>

<script>
//  表格
import commodityTypeTable from "./components/commodityTypeTable.vue";

export default {
  components: { commodityTypeTable },
  data() {
    return {
      form: {},
    };
  },
  mounted() {
  },
  methods: {
  // 添加
  onAdd() { 
      this.$refs['commodityTypeTable'].onAdd();
    }, 
  },
};
</script>

<style lang="less" scoped>
.btnBox {
  padding-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}
</style>
